package zjy.android.radapter;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import zjy.android.radapter.annotation.IgnoreData;
import zjy.android.radapter.annotation.ReturnSource;
import zjy.android.radapter.livedata.ReturnLiveData;

public interface LoginService {

    @POST("/login")
    @FormUrlEncoded
//    @ReturnSource
    ReturnLiveData<LoginInfo> login(@Field("usrName") String userName,
                                    @Field("passWord") String password);

    @POST("/login")
    @FormUrlEncoded
    @IgnoreData
    Call<HttpResult<LoginInfo>> login1(@Field("usrName") String userName,
                          @Field("passWord") String password);

}
